package com.zhuiyun.project.api.equipment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhuiyun.project.api.equipment.entity.Equipment;
import com.zhuiyun.project.api.venuemanagement.entity.VenueManagement;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface EquipmentService {
    /**
    * 分页查询+模糊查询 器材管理
    * @Author lpr
    * @Description
    * @Date 2023/11/8 11:28
    * @Return com.baomidou.mybatisplus.core.metadata.IPage<com.zhuiyun.project.api.equipment.entity.Equipment>
    * @param pageRequest
    * @param equipment
    */
    IPage<Equipment> selectEquipment(PageRequest pageRequest, Equipment equipment);
    /**
    * 新增器材信息
    * @Author lpr
    * @Description
    * @Date 2023/11/8 16:00
    * @Return int
    * @param files
    * @param equipment
    */
    int addEquipment(MultipartFile[] files, Equipment equipment);
    /**
     * 修改器材信息
     * @Author lpr
     * @Description
     * @Date 2023/11/8 19:00
     * @Return int
     * @param files
     * @param equipment
     */
    CommonResult editEquipment(MultipartFile[] files, Equipment equipment);
    /**
     * 修改器材状态
     * @Author lpr
     * @Description
     * @Date 2023/11/8 19:00
     * @Return int
     * @param equipment
     */
    Object editEmentDisplay(Equipment equipment);
    /**
    * 器材逻辑删除
    * @Author lpr
    * @Description
    * @Date 2023/11/9 15:53
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param ementId
    */
    CommonResult removeEmentById(Integer ementId);
    /**
     * 查询 器材管理
     * @Author lpr
     * @Description
     * @Date 2023/11/8 11:28
     * @Return com.baomidou.mybatisplus.core.metadata.IPage<com.zhuiyun.project.api.equipment.entity.Equipment>
     * @param venueUniqueIdentifier
     */
    List<VenueManagement> listvenueManagementByVenueId(String venueUniqueIdentifier);
}
